﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Alex.Library.Log
{
    /// <summary>
    /// 日志类接口
    /// </summary>
    public interface ILogger
    {
        /// <summary>
        /// 输出日志的最低级别
        /// </summary>
        LogLevel FlushLevel { get; set; }

        /// <summary>
        /// 日志模板
        /// </summary>
        ILogInfoTemplate Template { get; set; }

        /// <summary>
        /// 输出日志
        /// </summary>        
        /// <param name="level">级别</param>
        /// <param name="message">消息</param>
        void Flush(LogLevel level, string message);
    }
}
